package com.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 宿舍
 *
 * @TableName dorm
 */
@TableName(value = "dorm")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Dorm extends CommonProperty implements Serializable {
    /**
     * 宿舍id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 楼宇id
     */
    @TableField(value = "building_id")
    private Long buildingId;

    /**
     * 宿舍名称(宿舍号)
     */
    @TableField(value = "dorm_name")
    private String dormName;

    /**
     * 可住人数
     */
    @TableField(value = "occupants_number")
    private Integer occupantsNumber;

    /**
     * 现住人数
     */
    @TableField(value = "now_number")
    private Integer nowNumber;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}